package net.lijingye.education.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Entity
@Table(name = "depart")
public class Depart implements Serializable {
    @Id
    @Column(name = "departId")
    private String id;
    @Column(name = "departName")
    private String name;

    public Depart() {
    }

    public Depart(String id, String name) {
        this.id = id;
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}